Selectively import timespec_get into namespace std, since some C libraries don't have it. Reviewed as https://reviews.llvm.org/D50799 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@339816 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/include/__config b/include/__config index cd2a135..06af4dc 100644 --- a/include/__config +++ b/include/__config 
@@ -334,6 +334,7 @@  # define _LIBCPP_HAS_C11_FEATURES  # elif defined(__Fuchsia__)  # define _LIBCPP_HAS_QUICK_EXIT +# define _LIBCPP_HAS_TIMESPEC_GET  # define _LIBCPP_HAS_C11_FEATURES  # elif defined(__linux__)  # if !defined(_LIBCPP_HAS_MUSL_LIBC) @@ -342,9 +343,11 @@  # endif  # if _LIBCPP_GLIBC_PREREQ(2, 17)  # define _LIBCPP_HAS_C11_FEATURES +# define _LIBCPP_HAS_TIMESPEC_GET  # endif  # else // defined(_LIBCPP_HAS_MUSL_LIBC)  # define _LIBCPP_HAS_QUICK_EXIT +# define _LIBCPP_HAS_TIMESPEC_GET  # define _LIBCPP_HAS_C11_FEATURES  # endif  # endif // __linux__ 
diff --git a/include/cstdlib b/include/cstdlib index 78c4284..00c604e 100644 --- a/include/cstdlib +++ b/include/cstdlib 
@@ -151,11 +151,11 @@  using ::wctomb;  using ::mbstowcs;  using ::wcstombs; -#ifdef _LIBCPP_HAS_QUICK_EXIT +#if !defined(_LIBCPP_CXX03_LANG) && defined(_LIBCPP_HAS_QUICK_EXIT)  using ::at_quick_exit;  using ::quick_exit;  #endif -#ifdef _LIBCPP_HAS_C11_FEATURES +#if _LIBCPP_STD_VER > 14 && defined(_LIBCPP_HAS_C11_FEATURES)  using ::aligned_alloc;  #endif   
diff --git a/include/ctime b/include/ctime index 81cf11a..8264fe3 100644 --- a/include/ctime +++ b/include/ctime 
@@ -73,7 +73,7 @@  using ::localtime;  #endif  using ::strftime; -#if _LIBCPP_STD_VER > 14 && defined(_LIBCPP_HAS_C11_FEATURES) +#if _LIBCPP_STD_VER > 14 && defined(_LIBCPP_HAS_TIMESPEC_GET)  using ::timespec_get;  #endif